import request from './network.js'

const headers = {'content-type': 'application/x-www-form-urlencoded'};

// 保存用户支付宝userId
export function getUserId(prams) {
  return request({
    url: '/api/ali/getUserId',
    headers: headers,
    method: 'POST',
    data: {"data": prams}
  })
}


// 新车保存用户支付宝userId
export function getUserIdxc(prams, header) {
  return request({
    url: '/api/ali/getUserIdxc',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}

// 授权
export function authorizationTwo(prams) {
  return request({
    url: '/api/authorizationTwo',
    headers: headers,
    method: 'POST',
    data: {"data": prams}
  })
}

// 通用授权接口
export function lifenumberauthorization(prams) {
  return request({
    url: '/api/lifenumberauthorization',
		headers: headers,
    method: 'POST',
    data: {"data": prams}
  })
}

// 姓名身份证号验证
export function realNameAuthentication(prams, header) {
  return request({
    url: '/shopUser/realNameAuthentication',
    headers: header,
    method: 'POST',
    data: {"data": prams}
  })
}